package br.com.news.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public final class DateUtil {
	
	public static String convert(Date date) {
		String result;
		if (date != null ) {
			SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
			result = sdf.format(date);
		} else {
			result = "";
		}
		return result;
	}
	
}
